<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_plot_abstract_barchart.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__plot__abstract__barchart_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_plot_abstract_barchart.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_plot_abstract_barchart.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_map.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;qwt_math.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">double</span> qwtTransformWidth(</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; map, <span class="keywordtype">double</span> value, <span class="keywordtype">double</span> width )</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> w2 = 0.5 * width;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> v1 = map.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( value - w2 );</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">double</span> v2 = map.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( value + w2 );</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keywordflow">return</span> qAbs( v2 - v1 );</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;}</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">class </span>QwtPlotAbstractBarChart::PrivateData</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;{</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    PrivateData()</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        : <a class="code" href="class_qwt_plot_abstract_bar_chart.html#aa54354ec5bf93e08b96110d8a8b5da86">layoutPolicy</a>( <a class="code" href="class_qwt_plot_abstract_bar_chart.html">QwtPlotAbstractBarChart</a>::<a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aa6d8801b5f08318c9be2441ca4bb15a96">AutoAdjustSamples</a> )</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        , <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a1e656005c75874656527c70fe7648203">layoutHint</a>( 0.5 )</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;        , <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">spacing</a>( 10 )</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        , <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a8df1fbf69687f78f9859fd77a4963907">margin</a>( 5 )</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        , <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a4f6d60ce854bf008fce4e581e942ea51">baseline</a>( 0.0 )</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    }</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53a">QwtPlotAbstractBarChart::LayoutPolicy</a> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#aa54354ec5bf93e08b96110d8a8b5da86">layoutPolicy</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a1e656005c75874656527c70fe7648203">layoutHint</a>;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">spacing</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a8df1fbf69687f78f9859fd77a4963907">margin</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a4f6d60ce854bf008fce4e581e942ea51">baseline</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;};</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#a1eed4138383e5f0d118d518fd0255711">   48</a></span>&#160;<a class="code" href="class_qwt_plot_abstract_bar_chart.html#a1eed4138383e5f0d118d518fd0255711">QwtPlotAbstractBarChart::QwtPlotAbstractBarChart</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_text.html">QwtText</a>&amp; title )</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    : <a class="code" href="class_qwt_plot_series_item.html">QwtPlotSeriesItem</a>( title )</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;{</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    m_data = <span class="keyword">new</span> PrivateData;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <a class="code" href="class_qwt_plot_item.html#a5a335be8ff488809a2cf7f4b734ad1b6">setItemAttribute</a>( <a class="code" href="class_qwt_plot_item.html#ae0fabcdd35f4818ce5bbe019b0eed062a4e377b54bd879c60a95162b6a9e9e176">QwtPlotItem::Legend</a>, <span class="keyword">true</span> );</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <a class="code" href="class_qwt_plot_item.html#a5a335be8ff488809a2cf7f4b734ad1b6">setItemAttribute</a>( <a class="code" href="class_qwt_plot_item.html#ae0fabcdd35f4818ce5bbe019b0eed062a9de83e2ad8a88796a36a11ef8b033a48">QwtPlotItem::AutoScale</a>, <span class="keyword">true</span> );</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <a class="code" href="class_qwt_plot_item.html#a5a335be8ff488809a2cf7f4b734ad1b6">setItemAttribute</a>( <a class="code" href="class_qwt_plot_item.html#ae0fabcdd35f4818ce5bbe019b0eed062a56ea00cf43b862667dec2ac727307d4d">QwtPlotItem::Margins</a>, <span class="keyword">true</span> );</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <a class="code" href="class_qwt_plot_item.html#a57d90e4146133b59d589c71b3a643e82">setZ</a>( 19.0 );</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;}</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#a80176eb6c7f95c5f5b9b90e595e1fdcd">   60</a></span>&#160;<a class="code" href="class_qwt_plot_abstract_bar_chart.html#a80176eb6c7f95c5f5b9b90e595e1fdcd">QwtPlotAbstractBarChart::~QwtPlotAbstractBarChart</a>()</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;{</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">delete</span> m_data;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;}</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#aabc7165ee75a38f444aa97e9b3dca16b">   73</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#aabc7165ee75a38f444aa97e9b3dca16b">QwtPlotAbstractBarChart::setLayoutPolicy</a>( <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53a">LayoutPolicy</a> policy )</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;{</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordflow">if</span> ( policy != m_data-&gt;layoutPolicy )</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    {</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        m_data-&gt;layoutPolicy = policy;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    }</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#aa54354ec5bf93e08b96110d8a8b5da86">   89</a></span>&#160;<a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53a">QwtPlotAbstractBarChart::LayoutPolicy</a> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#aa54354ec5bf93e08b96110d8a8b5da86">QwtPlotAbstractBarChart::layoutPolicy</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;layoutPolicy;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;}</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#aff6bb52dad207c8396b359a248a00359">  102</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#aff6bb52dad207c8396b359a248a00359">QwtPlotAbstractBarChart::setLayoutHint</a>( <span class="keywordtype">double</span> hint )</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;{</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    hint = qwtMaxF( 0.0, hint );</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordflow">if</span> ( hint != m_data-&gt;layoutHint )</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        m_data-&gt;layoutHint = hint;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    }</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;}</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160; </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#a1e656005c75874656527c70fe7648203">  119</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a1e656005c75874656527c70fe7648203">QwtPlotAbstractBarChart::layoutHint</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;layoutHint;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;}</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#a0cb5bd5a653918b1513fa87ad75fa8b1">  132</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a0cb5bd5a653918b1513fa87ad75fa8b1">QwtPlotAbstractBarChart::setSpacing</a>( <span class="keywordtype">int</span> spacing )</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;{</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">spacing</a> = qMax( <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">spacing</a>, 0 );</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">spacing</a> != m_data-&gt;spacing )</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    {</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        m_data-&gt;spacing = <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">spacing</a>;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    }</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;}</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">  146</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">QwtPlotAbstractBarChart::spacing</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;spacing;</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;}</div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#a97946d3da8e9fe2e49494a882651e4fd">  160</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a97946d3da8e9fe2e49494a882651e4fd">QwtPlotAbstractBarChart::setMargin</a>( <span class="keywordtype">int</span> margin )</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;{</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a8df1fbf69687f78f9859fd77a4963907">margin</a> = qMax( <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a8df1fbf69687f78f9859fd77a4963907">margin</a>, 0 );</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a8df1fbf69687f78f9859fd77a4963907">margin</a> != m_data-&gt;margin )</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        m_data-&gt;margin = <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a8df1fbf69687f78f9859fd77a4963907">margin</a>;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    }</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;}</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#a8df1fbf69687f78f9859fd77a4963907">  176</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a8df1fbf69687f78f9859fd77a4963907">QwtPlotAbstractBarChart::margin</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;margin;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;}</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#adafbea42ddc3f7f639f2880a4bf683ad">  195</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#adafbea42ddc3f7f639f2880a4bf683ad">QwtPlotAbstractBarChart::setBaseline</a>( <span class="keywordtype">double</span> value )</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;{</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="keywordflow">if</span> ( value != m_data-&gt;baseline )</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    {</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        m_data-&gt;baseline = value;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    }</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;}</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160; </div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#a4f6d60ce854bf008fce4e581e942ea51">  208</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a4f6d60ce854bf008fce4e581e942ea51">QwtPlotAbstractBarChart::baseline</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;baseline;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;}</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160; </div>
<div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#a25bb74331fa28bf0ea555dff0ca9d3cb">  225</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a25bb74331fa28bf0ea555dff0ca9d3cb">QwtPlotAbstractBarChart::sampleWidth</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; map,</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    <span class="keywordtype">double</span> canvasSize, <span class="keywordtype">double</span> boundingSize, <span class="keywordtype">double</span> value )<span class="keyword"> const</span></div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <span class="keywordtype">double</span> width;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160; </div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keywordflow">switch</span>( m_data-&gt;layoutPolicy )</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    {</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aaa436f4537d15dbfac62c864389b12220">ScaleSamplesToAxes</a>:</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        {</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;            width = qwtTransformWidth( map, value, m_data-&gt;layoutHint );</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        }</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aaf63f5c75741674252ac3d788735873d5">ScaleSampleToCanvas</a>:</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        {</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;            width = canvasSize * m_data-&gt;layoutHint;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;        }</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aa17d33062f0a9e6c38e43a0c51ba778e5">FixedSampleSize</a>:</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        {</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;            width = m_data-&gt;layoutHint;</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        }</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aa6d8801b5f08318c9be2441ca4bb15a96">AutoAdjustSamples</a>:</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        {</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">size_t</span> numSamples = <a class="code" href="class_qwt_abstract_series_store.html#aa68ed8e5ce3da6b18826d8f95be86ad6">dataSize</a>();</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160; </div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;            <span class="keywordtype">double</span> w = 1.0;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;            <span class="keywordflow">if</span> ( numSamples &gt; 1 )</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;            {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;                w = qAbs( boundingSize / ( numSamples - 1 ) );</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;            }</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; </div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;            width = qwtTransformWidth( map, value, w );</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;            width -= m_data-&gt;spacing;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;            width = qwtMaxF( width, m_data-&gt;layoutHint );</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        }</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    }</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160; </div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    <span class="keywordflow">return</span> width;</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;}</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160; </div>
<div class="line"><a name="l00289"></a><span class="lineno"><a class="line" href="class_qwt_plot_abstract_bar_chart.html#a9e9dd569100c1e04c913f4c4d957dd60">  289</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a9e9dd569100c1e04c913f4c4d957dd60">QwtPlotAbstractBarChart::getCanvasMarginHint</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; xMap,</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; yMap, <span class="keyword">const</span> QRectF&amp; canvasRect,</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <span class="keywordtype">double</span>&amp; left, <span class="keywordtype">double</span>&amp; top, <span class="keywordtype">double</span>&amp; right, <span class="keywordtype">double</span>&amp; bottom )<span class="keyword"> const</span></div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <span class="keywordtype">double</span> hint = -1.0;</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160; </div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    <span class="keywordflow">switch</span>( <a class="code" href="class_qwt_plot_abstract_bar_chart.html#aa54354ec5bf93e08b96110d8a8b5da86">layoutPolicy</a>() )</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    {</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aaf63f5c75741674252ac3d788735873d5">ScaleSampleToCanvas</a>:</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        {</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;            <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_series_item.html#a2717f491367632327a753eab8517506e">orientation</a>() == Qt::Vertical )</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;                hint = 0.5 * canvasRect.width() * m_data-&gt;layoutHint;</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;                hint = 0.5 * canvasRect.height() * m_data-&gt;layoutHint;</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160; </div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        }</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aa17d33062f0a9e6c38e43a0c51ba778e5">FixedSampleSize</a>:</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;        {</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;            hint = 0.5 * m_data-&gt;layoutHint;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;        }</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aa6d8801b5f08318c9be2441ca4bb15a96">AutoAdjustSamples</a>:</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aaa436f4537d15dbfac62c864389b12220">ScaleSamplesToAxes</a>:</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        {</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">size_t</span> numSamples = <a class="code" href="class_qwt_abstract_series_store.html#aa68ed8e5ce3da6b18826d8f95be86ad6">dataSize</a>();</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;            <span class="keywordflow">if</span> ( numSamples &lt;= 0 )</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160; </div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;            <span class="comment">// doesn&#39;t work for nonlinear scales</span></div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160; </div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;            <span class="keyword">const</span> QRectF br = <a class="code" href="class_qwt_abstract_series_store.html#a23d498a9d5bb10cb573db55650551a2c">dataRect</a>();</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;            <span class="keywordtype">double</span> <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">spacing</a> = 0.0;</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;            <span class="keywordtype">double</span> sampleWidthS = 1.0;</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160; </div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;            <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_abstract_bar_chart.html#aa54354ec5bf93e08b96110d8a8b5da86">layoutPolicy</a>() == <a class="code" href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aaa436f4537d15dbfac62c864389b12220">ScaleSamplesToAxes</a> )</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;            {</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;                sampleWidthS = qwtMaxF( m_data-&gt;layoutHint, 0.0 );</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;            }</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;            {</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;                <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">spacing</a> = m_data-&gt;spacing;</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160; </div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;                <span class="keywordflow">if</span> ( numSamples &gt; 1 )</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;                {</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;                    sampleWidthS = qAbs( br.width() / ( numSamples - 1 ) );</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;                }</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;            }</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160; </div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;            <span class="keywordtype">double</span> ds, w;</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;            <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_series_item.html#a2717f491367632327a753eab8517506e">orientation</a>() == Qt::Vertical )</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;            {</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;                ds = qAbs( xMap.<a class="code" href="class_qwt_scale_map.html#a953eb3e6584d8a6ca4d5fff98a9a0aa0">sDist</a>() );</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;                w = canvasRect.width();</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;            }</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;            {</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;                ds = qAbs( yMap.<a class="code" href="class_qwt_scale_map.html#a953eb3e6584d8a6ca4d5fff98a9a0aa0">sDist</a>() );</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;                w = canvasRect.height();</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;            }</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160; </div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;            <span class="keyword">const</span> <span class="keywordtype">double</span> sampleWidthP = ( w - <a class="code" href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">spacing</a> * ( numSamples - 1 ) )</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;                * sampleWidthS / ( ds + sampleWidthS );</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160; </div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;            hint = 0.5 * sampleWidthP;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;            hint += qMax( m_data-&gt;margin, 0 );</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;        }</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    }</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160; </div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_series_item.html#a2717f491367632327a753eab8517506e">orientation</a>() == Qt::Vertical )</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    {</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        left = right = hint;</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        top = bottom = -1.0; <span class="comment">// no hint</span></div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    }</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    {</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;        left = right = -1.0; <span class="comment">// no hint</span></div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;        top = bottom = hint;</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    }</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;}</div>
<div class="ttc" id="aclass_qwt_abstract_series_store_html_a23d498a9d5bb10cb573db55650551a2c"><div class="ttname"><a href="class_qwt_abstract_series_store.html#a23d498a9d5bb10cb573db55650551a2c">QwtAbstractSeriesStore::dataRect</a></div><div class="ttdeci">virtual QRectF dataRect() const =0</div></div>
<div class="ttc" id="aclass_qwt_abstract_series_store_html_aa68ed8e5ce3da6b18826d8f95be86ad6"><div class="ttname"><a href="class_qwt_abstract_series_store.html#aa68ed8e5ce3da6b18826d8f95be86ad6">QwtAbstractSeriesStore::dataSize</a></div><div class="ttdeci">virtual size_t dataSize() const =0</div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html">QwtPlotAbstractBarChart</a></div><div class="ttdoc">Abstract base class for bar chart items.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8h_source.html#l00024">qwt_plot_abstract_barchart.h:25</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_a0cb5bd5a653918b1513fa87ad75fa8b1"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#a0cb5bd5a653918b1513fa87ad75fa8b1">QwtPlotAbstractBarChart::setSpacing</a></div><div class="ttdeci">void setSpacing(int)</div><div class="ttdoc">Set the spacing.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00132">qwt_plot_abstract_barchart.cpp:132</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_a1e656005c75874656527c70fe7648203"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#a1e656005c75874656527c70fe7648203">QwtPlotAbstractBarChart::layoutHint</a></div><div class="ttdeci">double layoutHint() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00119">qwt_plot_abstract_barchart.cpp:119</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_a1eed4138383e5f0d118d518fd0255711"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#a1eed4138383e5f0d118d518fd0255711">QwtPlotAbstractBarChart::QwtPlotAbstractBarChart</a></div><div class="ttdeci">QwtPlotAbstractBarChart(const QwtText &amp;title)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00048">qwt_plot_abstract_barchart.cpp:48</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_a25bb74331fa28bf0ea555dff0ca9d3cb"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#a25bb74331fa28bf0ea555dff0ca9d3cb">QwtPlotAbstractBarChart::sampleWidth</a></div><div class="ttdeci">double sampleWidth(const QwtScaleMap &amp;map, double canvasSize, double boundingSize, double value) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00225">qwt_plot_abstract_barchart.cpp:225</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_a4f6d60ce854bf008fce4e581e942ea51"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#a4f6d60ce854bf008fce4e581e942ea51">QwtPlotAbstractBarChart::baseline</a></div><div class="ttdeci">double baseline() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00208">qwt_plot_abstract_barchart.cpp:208</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_a6532fb226ed6df5452d3d96de0ad85b9"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#a6532fb226ed6df5452d3d96de0ad85b9">QwtPlotAbstractBarChart::spacing</a></div><div class="ttdeci">int spacing() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00146">qwt_plot_abstract_barchart.cpp:146</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_a80176eb6c7f95c5f5b9b90e595e1fdcd"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#a80176eb6c7f95c5f5b9b90e595e1fdcd">QwtPlotAbstractBarChart::~QwtPlotAbstractBarChart</a></div><div class="ttdeci">virtual ~QwtPlotAbstractBarChart()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00060">qwt_plot_abstract_barchart.cpp:60</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_a8df1fbf69687f78f9859fd77a4963907"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#a8df1fbf69687f78f9859fd77a4963907">QwtPlotAbstractBarChart::margin</a></div><div class="ttdeci">int margin() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00176">qwt_plot_abstract_barchart.cpp:176</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_a97946d3da8e9fe2e49494a882651e4fd"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#a97946d3da8e9fe2e49494a882651e4fd">QwtPlotAbstractBarChart::setMargin</a></div><div class="ttdeci">void setMargin(int)</div><div class="ttdoc">Set the margin.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00160">qwt_plot_abstract_barchart.cpp:160</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_a9e9dd569100c1e04c913f4c4d957dd60"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#a9e9dd569100c1e04c913f4c4d957dd60">QwtPlotAbstractBarChart::getCanvasMarginHint</a></div><div class="ttdeci">virtual void getCanvasMarginHint(const QwtScaleMap &amp;xMap, const QwtScaleMap &amp;yMap, const QRectF &amp;canvasRect, double &amp;left, double &amp;top, double &amp;right, double &amp;bottom) const override</div><div class="ttdoc">Calculate a hint for the canvas margin.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00289">qwt_plot_abstract_barchart.cpp:289</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_aa54354ec5bf93e08b96110d8a8b5da86"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#aa54354ec5bf93e08b96110d8a8b5da86">QwtPlotAbstractBarChart::layoutPolicy</a></div><div class="ttdeci">LayoutPolicy layoutPolicy() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00089">qwt_plot_abstract_barchart.cpp:89</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_aabc7165ee75a38f444aa97e9b3dca16b"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#aabc7165ee75a38f444aa97e9b3dca16b">QwtPlotAbstractBarChart::setLayoutPolicy</a></div><div class="ttdeci">void setLayoutPolicy(LayoutPolicy)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00073">qwt_plot_abstract_barchart.cpp:73</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_adafbea42ddc3f7f639f2880a4bf683ad"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#adafbea42ddc3f7f639f2880a4bf683ad">QwtPlotAbstractBarChart::setBaseline</a></div><div class="ttdeci">void setBaseline(double)</div><div class="ttdoc">Set the baseline.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00195">qwt_plot_abstract_barchart.cpp:195</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_ae1db0e1606747ef46c863c54c210e53a"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53a">QwtPlotAbstractBarChart::LayoutPolicy</a></div><div class="ttdeci">LayoutPolicy</div><div class="ttdoc">Mode how to calculate the bar width.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8h_source.html#l00032">qwt_plot_abstract_barchart.h:33</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_ae1db0e1606747ef46c863c54c210e53aa17d33062f0a9e6c38e43a0c51ba778e5"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aa17d33062f0a9e6c38e43a0c51ba778e5">QwtPlotAbstractBarChart::FixedSampleSize</a></div><div class="ttdeci">@ FixedSampleSize</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8h_source.html#l00060">qwt_plot_abstract_barchart.h:59</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_ae1db0e1606747ef46c863c54c210e53aa6d8801b5f08318c9be2441ca4bb15a96"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aa6d8801b5f08318c9be2441ca4bb15a96">QwtPlotAbstractBarChart::AutoAdjustSamples</a></div><div class="ttdeci">@ AutoAdjustSamples</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8h_source.html#l00041">qwt_plot_abstract_barchart.h:41</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_ae1db0e1606747ef46c863c54c210e53aaa436f4537d15dbfac62c864389b12220"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aaa436f4537d15dbfac62c864389b12220">QwtPlotAbstractBarChart::ScaleSamplesToAxes</a></div><div class="ttdeci">@ ScaleSamplesToAxes</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8h_source.html#l00046">qwt_plot_abstract_barchart.h:46</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_ae1db0e1606747ef46c863c54c210e53aaf63f5c75741674252ac3d788735873d5"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#ae1db0e1606747ef46c863c54c210e53aaf63f5c75741674252ac3d788735873d5">QwtPlotAbstractBarChart::ScaleSampleToCanvas</a></div><div class="ttdeci">@ ScaleSampleToCanvas</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8h_source.html#l00054">qwt_plot_abstract_barchart.h:54</a></div></div>
<div class="ttc" id="aclass_qwt_plot_abstract_bar_chart_html_aff6bb52dad207c8396b359a248a00359"><div class="ttname"><a href="class_qwt_plot_abstract_bar_chart.html#aff6bb52dad207c8396b359a248a00359">QwtPlotAbstractBarChart::setLayoutHint</a></div><div class="ttdeci">void setLayoutHint(double)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__abstract__barchart_8cpp_source.html#l00102">qwt_plot_abstract_barchart.cpp:102</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a57d90e4146133b59d589c71b3a643e82"><div class="ttname"><a href="class_qwt_plot_item.html#a57d90e4146133b59d589c71b3a643e82">QwtPlotItem::setZ</a></div><div class="ttdeci">void setZ(double z)</div><div class="ttdoc">Set the z value.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00165">qwt_plot_item.cpp:165</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a5a335be8ff488809a2cf7f4b734ad1b6"><div class="ttname"><a href="class_qwt_plot_item.html#a5a335be8ff488809a2cf7f4b734ad1b6">QwtPlotItem::setItemAttribute</a></div><div class="ttdeci">void setItemAttribute(ItemAttribute, bool on=true)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00228">qwt_plot_item.cpp:228</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ad956fdbce5b0721abccce6d09fe4d5ce"><div class="ttname"><a href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">QwtPlotItem::itemChanged</a></div><div class="ttdeci">virtual void itemChanged()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00481">qwt_plot_item.cpp:481</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ae0fabcdd35f4818ce5bbe019b0eed062a4e377b54bd879c60a95162b6a9e9e176"><div class="ttname"><a href="class_qwt_plot_item.html#ae0fabcdd35f4818ce5bbe019b0eed062a4e377b54bd879c60a95162b6a9e9e176">QwtPlotItem::Legend</a></div><div class="ttdeci">@ Legend</div><div class="ttdoc">The item is represented on the legend.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00150">qwt_plot_item.h:150</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ae0fabcdd35f4818ce5bbe019b0eed062a56ea00cf43b862667dec2ac727307d4d"><div class="ttname"><a href="class_qwt_plot_item.html#ae0fabcdd35f4818ce5bbe019b0eed062a56ea00cf43b862667dec2ac727307d4d">QwtPlotItem::Margins</a></div><div class="ttdeci">@ Margins</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00165">qwt_plot_item.h:164</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ae0fabcdd35f4818ce5bbe019b0eed062a9de83e2ad8a88796a36a11ef8b033a48"><div class="ttname"><a href="class_qwt_plot_item.html#ae0fabcdd35f4818ce5bbe019b0eed062a9de83e2ad8a88796a36a11ef8b033a48">QwtPlotItem::AutoScale</a></div><div class="ttdeci">@ AutoScale</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00157">qwt_plot_item.h:157</a></div></div>
<div class="ttc" id="aclass_qwt_plot_series_item_html"><div class="ttname"><a href="class_qwt_plot_series_item.html">QwtPlotSeriesItem</a></div><div class="ttdoc">Base class for plot items representing a series of samples.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__seriesitem_8h_source.html#l00024">qwt_plot_seriesitem.h:26</a></div></div>
<div class="ttc" id="aclass_qwt_plot_series_item_html_a2717f491367632327a753eab8517506e"><div class="ttname"><a href="class_qwt_plot_series_item.html#a2717f491367632327a753eab8517506e">QwtPlotSeriesItem::orientation</a></div><div class="ttdeci">Qt::Orientation orientation() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__seriesitem_8cpp_source.html#l00077">qwt_plot_seriesitem.cpp:77</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html"><div class="ttname"><a href="class_qwt_scale_map.html">QwtScaleMap</a></div><div class="ttdoc">A scale map.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00026">qwt_scale_map.h:27</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a504f1627e0e02ddac03d2ce46507b865"><div class="ttname"><a href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">QwtScaleMap::transform</a></div><div class="ttdeci">double transform(double s) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00137">qwt_scale_map.h:137</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a953eb3e6584d8a6ca4d5fff98a9a0aa0"><div class="ttname"><a href="class_qwt_scale_map.html#a953eb3e6584d8a6ca4d5fff98a9a0aa0">QwtScaleMap::sDist</a></div><div class="ttdeci">double sDist() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00123">qwt_scale_map.h:123</a></div></div>
<div class="ttc" id="aclass_qwt_text_html"><div class="ttname"><a href="class_qwt_text.html">QwtText</a></div><div class="ttdoc">A class representing a text.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00051">qwt_text.h:52</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_plot_abstract_barchart.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
